package com.example.scala.chapter3

import scala.runtime.Nothing$


/**
 *
 * Description:
 *
 * Create by lucienoz on 2021/10/14.
 * Copyright © 2021 lucienoz. All rights reserved.
 */
object chapter01 {
  def main(args : Array[String]) : Unit = {

    val foo : String = "foo"

    def foofoo : Unit ={
      println("barbar")
    }

    List("word Hello","scala Hello").flatMap(_.split(" ")).map((_,1)).groupBy(_._1).map(tuple=>(tuple._1,tuple._2.size)).foreach(println)



  }

}
